﻿using dotHTML.HTML;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Text;
#pragma warning disable 0618
namespace TestdotHTML
{
    
    
    /// <summary>
    ///This is a test class for MetaTest and is intended
    ///to contain all MetaTest Unit Tests
    ///</summary>
    [TestClass()]
    public class MetaTest {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext {
            get {
                return testContextInstance;
            }
            set {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Meta Constructor
        ///</summary>
        [TestMethod()]
        public void MetaConstructorTest() {
            Meta target = new Meta();
            Assert.AreEqual("<meta/>", target.ToString());
        }

        /// <summary>
        ///A test for Charset
        ///</summary>
        [TestMethod()]
        public void CharsetTest() {
            Meta target = new Meta();
            string expected = string.Empty;
            string actual;
            target.Charset = expected;
            actual = target.Charset;
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Content
        ///</summary>
        [TestMethod()]
        public void ContentTest() {
            Meta target = new Meta();
            string expected = string.Empty;
            string actual;
            target.Content = expected;
            actual = target.Content;
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for HttpEquiv
        ///</summary>
        [TestMethod()]
        public void HttpEquivTest() {
            Meta target = new Meta();
            string expected = string.Empty;
            string actual;
            target.HttpEquiv = expected;
            actual = target.HttpEquiv;
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Name
        ///</summary>
        [TestMethod()]
        public void NameTest() {
            Meta target = new Meta();
            string expected = string.Empty;
            string actual;
            target.Name = expected;
            actual = target.Name;
            Assert.AreEqual(expected, actual);
        }

        /// <summary>
        ///A test for Scheme
        ///</summary>
        [TestMethod()]
        public void SchemeTest() {
            Meta target = new Meta();
            string expected = string.Empty;
            string actual;
            target.Scheme = expected;
            actual = target.Scheme;
            Assert.AreEqual(expected, actual);
        }

        [TestMethod()]
        public void ToStringTest() {
            Meta m = new Meta("http", "content");
            m.Name = "name";
            m.Scheme = "scheme";
            m.Charset = "charset";
            Assert.AreEqual("<meta charset=\"charset\" " +
                "content=\"content\" " +
                "http-equiv=\"http\" " +
                "name=\"name\" " +
                "scheme=\"scheme\"/>", m.ToString());
        }
    }
}
